package com.qin.entity.components;

import com.qin.entity.ExecuteBean;
import com.qin.entity.SubComponent;
import java.util.List;

public class FunctionComponent {

    //子组件列表
    private List<SubComponent> subComponentList;

    public FunctionComponent(List<SubComponent> subComponentList) {
        this.subComponentList = subComponentList;
    }

    public void execute(ExecuteBean executeBean){

        //遍历执行子组件
        if(subComponentList != null && subComponentList.size() > 0){
            for(int i=0; i<subComponentList.size(); i++){
                subComponentList.get(i).execute(executeBean);
            }
        }
    }
}
